/*
 * Copyright (c) 2018-2024 北京华恒盛世科技有限公司
 * QUICKPOOL is licensed under Mulan PSL v2.
 * You can use this software according to the terms and conditions of the Mulan PSL v2.
 * You may obtain a copy of Mulan PSL v2 at:
 *     http://license.coscl.org.cn/MulanPSL2
 * THIS SOFTWARE IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND,
 * EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT,
 * MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE.
 * See the Mulan PSL v2 for more details.
*/

#ifndef SUBCMD_ADMIN_H
#define SUBCMD_ADMIN_H

typedef enum adminControl {
  ADMIN_RECONFIG=0,
  ADMIN_CKCONFIG,
  ADMIN_QUEUE_OPEN,
  ADMIN_QUEUE_CLOSE,
  ADMIN_QUEUE_ACT,
  ADMIN_QUEUE_INACT,
  ADMIN_QHIST,
  ADMIN_NODE_OPEN,
  ADMIN_NODE_CLOSE,
  ADMIN_JMRESTART,
  ADMIN_NODE_SHUTDOWN,
  ADMIN_HHIST,
  ADMIN_JSHIST,
  ADMIN_JSDEBUG,
  ADMIN_JSTIME,
  ADMIN_JSRESTART,
  ADMIN_JMDEBUG,
  ADMIN_JMTIME,
  ADMIN_QUEUE_NODEADD,
  ADMIN_QUEUE_NODEREMOVE,
  ADMIN_QUEUE_NODEUPDATE,
  ADMIN_JM_STARTUP,
  ADMIN_JM_RECONFIG,
  ADMIN_JM_CKCONFIG,
} admin_control_t;

extern int cmd_control_host(int, char **, admin_control_t);
extern int cmd_manage_queue(int, char **, admin_control_t);
extern int admin_operate_hist(int, char **, admin_control_t);

#endif
